/**
 * 路由路径常量
 * 统一管理所有路由路径，避免硬编码
 */

export const ROUTES = {
  // 公开路由
  LOGIN: '/login',

  // 受保护路由
  HOME: '/',
  HOMEPAGE: '/homepage',
  VIDEOS: '/videos',
  
  // 新的菜单项路由
  SINGLE_VIDEO: '/single-video',
  COLLECTION: '/collection',
  KEYWORD: '/keyword',
  TOPIC: '/topic',
  MY_HOMEPAGE: '/my-homepage',
  // 新旧命名兼容：我的主页提取
  MY_PROFILE: '/my-profile',
} as const

/**
 * 路由配置类型
 */
export type RoutePathType = typeof ROUTES[keyof typeof ROUTES]

/**
 * 路由元信息
 */
export interface RouteMetaInfo {
  path: RoutePathType
  title: string
  requireAuth: boolean
  icon?: string
}

/**
 * 路由配置列表
 */
export const ROUTE_CONFIG: RouteMetaInfo[] = [
  {
    path: ROUTES.LOGIN,
    title: '登录',
    requireAuth: false,
  },
  {
    path: ROUTES.HOMEPAGE,
    title: '主页管理',
    requireAuth: true,
  },
  {
    path: ROUTES.VIDEOS,
    title: '视频列表',
    requireAuth: true,
  },
  {
    path: ROUTES.SINGLE_VIDEO,
    title: '单作品提取',
    requireAuth: true,
  },
  {
    path: ROUTES.COLLECTION,
    title: '合集提取',
    requireAuth: true,
  },
  {
    path: ROUTES.KEYWORD,
    title: '关键词提取',
    requireAuth: true,
  },
  {
    path: ROUTES.TOPIC,
    title: '话题提取',
    requireAuth: true,
  },
  {
    path: ROUTES.MY_HOMEPAGE,
    title: '我的主页提取',
    requireAuth: true,
  },
]

